package com.thug;

import net.sf.ehcache.CacheManager;

import org.junit.Before;
import org.unitils.spring.annotation.SpringApplicationContext;
import org.unitils.spring.annotation.SpringBean;

/**
 * Loading and testing "Read Only With Cache" Spring context. Second call to facade will benefit the cache.
 * 
 * @author THUGUERRE
 * @since 2011-03-16
 */
@SpringApplicationContext("spring/applicationContext-read-only-with-cache.xml")
public class ReadOnlyWithCacheTestCase extends AbstractTestCase {

	@SpringBean("cacheManager")
	private CacheManager cacheManager;

	@Before
	public void setUp() {

		super.setUp();
		cacheManager.clearAll();
	}
}
